Skip to content

Conversation

nevans
Copy link
Collaborator

@nevans nevans commented Sep 9, 2023

  • Net::IMAP#authenticate still behaves identically to before
  • Net::IMAP::PlainAuthenticator and Net::IMAP::Xoauth2Authenticator have been moved to Net::IMAP::SASL::PlainAuthenticator and Net::IMAP::SASL::XOAuth2Authenticator. The original constants still work but are deprecated.
  • Net::IMAP::DigestMD5Authenticator, Net::IMAP::LoginAuthenticator, and Net::IMAP::CramMD5Authenticator were also moved to Net::IMAP::SASL. The original constants have simply been removed.
  • Net::IMAP::Authenticators has also been moved to Net::IMAP::SASL and has been converted to a class (with a default global instance). The original mixin module still exists and delegates to Net::IMAP::SASL, but it is deprecated.

The original constants for the `PLAIN` and `XOAUTH2` authenticators are
now deprecated aliases.

The constants for deprecated mechanisms were simply moved, with no
regard for backward compatibility.
The original methods (`Net::IMAP.authenticator` and
`Net::IMAP.add_authenticator`) both still work, by delegation to the
new methods.  But they have been deprecated and will issue warnings.
@nevans nevans added the SASL 🔒 Authentication and authentication mechanisms label Sep 9, 2023
@nevans nevans changed the title 🚚 Move and rename sasl authenticators 🚚 Move and rename SASL authenticators Sep 9, 2023
@nevans nevans merged commit aed3a57 into ruby:master Sep 9, 2023
@nevans nevans deleted the move-and-rename-sasl-authenticators branch September 9, 2023 22:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
SASL 🔒 Authentication and authentication mechanisms
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant